Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments\WooPaymentsService D

Total Complexity 240
Dependencies 12
Dependents 4
Total lines 2,422
Lines of code 1,301
Logical lines of code 513
Comment lines 813
Methods 60
Properties 4

Methods 60

Method Rating Maintainability Complexity Lines of code
get_onboarding_step_status()
D
34 33 87
onboarding_test_account_init()
B
32 14 118
get_onboarding_steps()
B
30 10 155
sanitize_onboarding_step_error()
A
46 12 40
disable_test_account()
A
40 10 66
get_onboarding_kyc_session()
A
36 8 92
standardize_onboarding_step_details()
A
45 10 44
finish_onboarding_kyc_session()
A
37 7 89
is_valid_onboarding_step_data()
A
52 11 27
reset_onboarding()
A
41 8 57
get_onboarding_payment_methods_state()
A
48 9 34
onboarding_step_save()
A
48 8 36
get_onboarding_kyc_fields()
S
57 6 15
check_if_onboarding_action_is_acceptable()
S
53 5 24
get_nox_profile_onboarding_step()
S
59 5 16
check_if_onboarding_step_action_is_acceptable()
S
52 4 27
onboarding_preload()
S
53 4 24
mark_onboarding_step_completed()
S
55 4 20
mark_onboarding_step_started()
S
55 4 20
record_event()
S
57 4 18
save_nox_profile_onboarding_step()
S
60 4 14
mark_onboarding_step_failed()
S
56 3 18
get_onboarding_step_required_steps()
S
65 3 11
get_overview_page_url()
S
58 2 18
clean_onboarding_step_progress()
S
59 2 16
check_onboarding_step_requirements()
S
65 3 9
get_onboarding_details()
S
57 1 17
get_nox_profile_onboarding_step_data_entry()
S
68 2 7
get_wpcom_connection_state()
S
64 2 10
get_nox_profile_onboarding_step_entry()
S
68 2 7
get_nox_profile()
S
66 2 9
standardize_onboarding_steps_details()
S
68 2 7
has_working_wpcom_connection()
S
79 2 3
get_onboarding_kyc_fallback_url()
S
65 2 9
has_live_account()
S
66 2 8
clear_onboarding_step_failed()
S
64 2 9
has_test_account()
S
66 2 8
has_working_account()
S
66 2 8
clear_onboarding_step_blocked()
S
64 2 9
has_valid_account()
S
68 2 7
is_valid_onboarding_step_id()
S
65 1 12
get_payment_gateway()
S
79 1 3
is_extension_active()
S
79 1 3
get_wpcom_connection_authorization()
S
79 1 3
has_account()
S
80 1 3
init()
S
69 1 6
save_nox_profile_onboarding_step_data_entry()
S
71 1 5
save_nox_profile_onboarding_step_entry()
S
72 1 5
clear_onboarding_lock()
S
79 1 3
set_onboarding_lock()
S
79 1 3
get_onboarding_recommended_payment_methods()
S
79 1 3
onboarding_step_check()
S
69 1 7
get_onboarding_step_error()
S
78 1 3
mark_onboarding_step_blocked()
S
66 1 7
is_onboarding_step_blocked()
S
73 1 4
is_onboarding_step_failed()
S
73 1 4
was_onboarding_step_marked_completed()
S
73 1 4
is_onboarding_step_completed()
S
78 1 3
was_onboarding_step_marked_started()
S
73 1 4
is_onboarding_locked()
S
78 1 3